package AbstractTest;

public class Cat extends Animal{
    public Cat(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        super.eat();
    }

    @Override
    public double sleep(double hour) {
        return super.sleep(hour);
    }

    public static void main(String[] args) {
        Cat cat = new Cat("猫", 3);
        double sleep = cat.sleep(3);
        System.out.println(sleep);

        cat.eat();
    }
}
